﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ScopePropertyExample.cs" company="JDML Consulting Ltd.">
//   Copyright 2011 Photon Project - http://photon.codeplex.com
// </copyright>
// <summary>
//   Defines the ScopePropertyExample type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Photon.Samples.Commands
{
    using System.Windows;
    using Windows;

    public class ScopePropertyExample
    {
        public static readonly ScopeProperty ExampleScopeProperty = ScopeProperty.RegisterAttached("Example", typeof(string),
            typeof(ScopePropertyExample), null);

        public static readonly DependencyProperty ExampleProperty = ExampleScopeProperty.Property;
        
        public static string GetExample(DependencyObject obj)
        {
            return (string)obj.GetValue(ExampleProperty);
        }

        public static void SetExample(DependencyObject obj, string value)
        {
            obj.SetValue(ExampleProperty, value);
        }
    }
}
